package com.example.onlinejudge.mapper;

import com.example.onlinejudge.model.Problem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Mapper
public interface ProblemMapper {
    public void insert(@RequestBody Problem problem);
    public void delete(@Param("id") Integer id);
    public Problem selectOne(@Param("id") Integer id);
    public List<Problem> selectAll();
}
